<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="images/favicon.png" type="image/png">

    <title><?php echo $this->fetch('title'); ?></title>
    <?php
        echo $this->Html->css(array('style.default'));
        echo $this->fetch('css');
    ?>
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <?php echo $this->Html->script(array('html5shiv','respond.min')); ?>
    <![endif]-->
</head>
<body class="horizontal-menu">
<div id="preloader">
    <div id="status"><i class="fa fa-spinner fa-spin"></i></div>
</div>
<section>
    <?php echo $this->element('/Layouts/left_panel'); ?>
    <div class="mainpanel">
        <?php echo $this->element('/Layouts/headerbar'); ?>
        <?php echo $this->element('/Layouts/pageheader'); ?>
        <div class="contentpanel">
            <?php echo $this->Session->flash(); ?>
            <div class="panel panel-primary panel-alt">
                <div class="panel-heading">
                    <h3 class="panel-title"><?php echo $this->fetch('panel_title') ?></h3>
                </div>
                <?php
                    if($this->fetch('content_form')){
                        echo $this->fetch('content_form');
                    }
                ?>
                <?php if($this->fetch('content_table')): ?>
                <div class="table-responsive">
                    <div class="col-lg-12 nopadding">
                        <div class="table-responsive">
                            <table class="table table-primary table-hover nomargin">
                                <?php echo $this->fetch('content_table') ?>
                            </table>
                        </div>
                        <div class="mb20"></div>
                    </div>
                </div>
                <?php endif; ?>
            </div>
            <?php echo $this->element('sql_dump'); ?>
        </div>
    </div>
</section>
<?php
    echo $this->Html->script(array('jquery-1.10.2.min','jquery-migrate-1.2.1.min','bootstrap.min','modernizr.min','jquery.sparkline.min','toggles.min','retina.min','jquery.cookies','custom'));
    echo $this->fetch('script');
?>
</body>
</html>
